import React, { useEffect } from 'react';
import { Form } from 'antd';
import { FormLabel } from '@ecoding/components.antd';

const C = () => {
    const [form] = Form.useForm(); // 该组件内form全局变量

    useEffect(() => {
        form.setFieldValue("field", "")
    }, []);

    return (
        <Form form={form} preserve={false} layout="vertical">
            <Form.Item name="field">
                <FormLabel empty='无' />
            </Form.Item>
            <Form.Item name="field">
                <FormLabel />
            </Form.Item>
        </Form>
        
    );
}

export default C;